package inherit_0909;

public class Child extends Parent{
    public static void main(String[] args) {
        Child child = new Child();
        child.name = "小冷";
        child.eyes = "欧式大双";
        // 显示继承
        System.out.println(child.name);
        System.out.println(child.eyes);
        // 隐式继承的属性不能在子类中直接使用
        child.useMoney();
        child.useCar();
        //能否在子类中直接使用相同包父类的属性
        child.age=12;
        System.out.println(child.age);//可以
    }
}